﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace JTicket.UI.Service
{
    /// <summary>
    /// JT_CustomSvc 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    [System.Web.Script.Services.ScriptService]
    public class JT_CustomSvc : System.Web.Services.WebService
    {  /// <summary>
        /// 删除一条数据
        /// </summary>
        [WebMethod]
        public void Delete(string ID)
        {
            BLL.I_Customer.Delete(Convert.ToInt32(ID));
        }
        [WebMethod]
        public void Deletes(string ID)
        {
            string[] id = ID.TrimEnd('|').Split('|');
            foreach (var code in id)
            {
                BLL.I_Customer.Delete(Convert.ToInt32(code));
            }
        }
    }
}
